home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2132 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: fangz.com!not-for-mail
  2. From: shad@fangz.com (Shadow.King)
  3. Newsgroups: alt.msdos.programmer,comp.lang.c
  4. Subject: Re: Pascal program works but not C program!
  5. Followup-To: alt.msdos.programmer,comp.lang.c
  6. Date: 18 Jan 1996 19:51:44 -0500
  7. Organization: fangz.com
  8. Message-ID: <4dmpv0$t77@fangz.com>
  9. References: <4cdpr2$psi@lugb.latrobe.edu.au>  <Pine.SV4.3.91-heb-2.04.960104114930.16292A-100000@cs.technion.ac.il>
  10. NNTP-Posting-Host: fangz.com
  11. X-Newsreader: TIN [UNIX 1.3 BETA-950824-color PL0]
  12.  
  13. : > 
  14. : > void main(int argc,char *argv[])
  15. :    ^-----------------------------This one too, but not too serious
  16. : > {
  17. : > }
  18. : > 
  19. : > 
  20.  
  21. This isn't really a problem, it's usually just the error code that the 
  22. program returns to dos when it exits. As far as I know it doesn't HAVE to 
  23. do this so just void main should be fine, I usually do the saem thing 
  24. with simple programs that don't need to set the error level on exit and 
  25. I've had no problems whatsoever with it. It is if the program is supposed 
  26. to return an error level though.
  27.